package com.cetc39.service.impl;

import java.util.List;

import com.cetc39.bean.ProjectType;
import com.cetc39.dao.ProjectTypeDao;
import com.cetc39.service.ProjectTypeService;

public class ProjectTypeServiceImpl implements ProjectTypeService {

	private ProjectTypeDao projectTypeDao;
	
	@Override
	public void add(ProjectType pt) {
		projectTypeDao.save(pt);
	}

	@Override
	public void delete(int id) {
		projectTypeDao.delete(id);
	}

	@Override
	public void update(ProjectType pt) {
		projectTypeDao.update(pt);
	}

	@Override
	public List<?> findAll() {
		
		return projectTypeDao.findAll();
	}

	@Override
	public ProjectType findById(int id) {
		return projectTypeDao.findById(id);
	}

	public void setProjectTypeDao(ProjectTypeDao projectTypeDao) {
		this.projectTypeDao = projectTypeDao;
	}
	
}
